{template header}
	<form action="index.php?m=business_comment" method="post" name="search">
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="2">搜索评论</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			商家名称:
			</td>
			<td class="altbg2">
			<input name="bname" type="text" id="name" value="{$bname}" size="40">		
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			评论内容:
			</td>
			<td class="altbg2">
			<input name="content" type="text" id="content" value="{$content}" size="40">		
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">&nbsp;
			</td>
			<td class="altbg2">
				<button name="do" value='' type="submit" class="button">搜索一下</button>&nbsp;&nbsp;
				<button class="button" type="button" onclick="window.location.href='index.php?m=business_comment';return false;">全部评论</button>
			</td>
		</tr>
		
	</table>
	</form>

	<form method="post" action="index.php?m=customer_complaint&a=do_delete">
	  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="120" height="30" align="right">内容筛选查看：</td>
          <td width="120" align="right"><a href="index.php?m=customer_complaint">所有商家</a></td>
          <td width="120" align="right"><a href="index.php?m=customer_complaint&status=已处理">已处理</a></td>
          <td width="120" align="right"><a href="index.php?m=customer_complaint&status=正在处理">正在处理</a></td>
          <td width="120" align="right"><a href="index.php?m=customer_complaint&status=未处理">未处理</a></td>
        </tr>
      </table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
			<tr class="header">
				<td width="30">
				<input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form,'ids')" ></td>	
				<td>商家名称</td>
				<td>投诉事由</td>
				<td>地址</td>
				<td>图片</td>
				<td>时间</td>
				<td>状态</td>
				<td width="80">操作</td>
			</tr>
			<!--{loop $list $item}-->
			<tr align="center">
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<input class="checkbox" type="checkbox" name="ids[]" value="$item[id]" >
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[item_name]}
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[reason]}
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[address]}
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<!--{if $item[image]}-->
					<a href="{$item[image]}" target="_blank"><img width="50" height="50" src="{$item[image]}"></a><br />
					<!--{/if}-->
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{echo date('Y-m-d H:i', $item[create_date])}
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					{$item[status]}
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<a href="index.php?m=customer_complaint&a=modify&id={$item[id]}">编辑</a>&nbsp;|&nbsp;
					<a href="index.php?m=customer_complaint&a=do_delete&ids={$item[id]}" onclick="return delete_confirm();">删除</a>&nbsp;
				</td>
			</tr>
			<!--{/loop}-->
			
			<!--{if $page_html}-->
			<tr align="center">
				<td colspan="4" class="altbg1">
					{$page_html}
				</td>
			</tr>
			<!--{/if}-->
		</table>
	
		<center><input class="button" type="submit" name="cronssubmit" value="删除所选" onclick="return delete_confirm();"></center>
	</form>
	
	<br />

<script type="text/javascript" src="templates/default/js/travel_info.js"></script>